package com.controller;/**
 * @AUTHOR: 我是章璐锋憨憨
 * @Data:
 * @Version:
 */

import com.pojo.Provider;
import com.pojo.User;
import com.service.ProviderService;
import com.service.UserService;
import com.utils.DSUtil;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.lang.reflect.Method;
import java.util.List;

/**
 * @outhor RD
 * 2021/12/23
 */
@WebServlet("/isNameExidServlet")
public class isNameExidServlet extends HttpServlet {
    @Override
    protected void service(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
        String name = req.getParameter("name");
        resp.getWriter().print(new UserService().exit(name));
    }
}
